/*
** main.c for lol in /home/deubel_j//colle
** 
** Made by james deubelbeiss
** Login   <deubel_j@epitech.net>
** 
** Started on  Mon Apr 18 22:46:57 2011 james deubelbeiss
** Last update Mon Apr 18 22:50:23 2011 james deubelbeiss
*/

#include <stdlib.h>
#include "my_mastermind.h"

int     main(int ac, char **av)
{
  t_args        *args;
  int           ret;

  args = parse_opts(ac, av);
  if (!my_check_args(args))
    return (EXIT_FAILURE);
  my_mm_play(args);
  xfree(args->code);
  xfree(args->pions);
  xfree(args);
  return (ret);
}
